import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

import { RootHttpInterceptor } from './root-http.interceptor';

import { HeadComponent } from './head/head.component';

@NgModule({
  declarations: [HeadComponent],
  imports: [
    HttpClientModule
  ],
  exports: [HeadComponent],
  providers: [
    {
      provide: HTTP_INTERCEPTORS,
      useClass: RootHttpInterceptor,
      multi: true,
    }
  ]
})
export class CoreModule { }
